<!DOCTYPE html>
<html>
<head>
<title>录入VIP客户消费记录</title>
</head>
<body>
	<header>
		<h1>录入VIP客户消费记录</h1>
	</header>
	<main>
	 <form action="/vipconsume/add.do" method="post">
        <p>
            <label>*会员手机号:<input name="vipMobile"  placeholder="将作为VIP编号"></label>
        </p>
       
        <p>
            <label>*关联订单编号:<input name="orderId" ></label>
        </p>
       
        <p>
            <label>*消费金额(元):<input  name="consumeMoney"></label>
        </p>
        
        <p>
            <label>备注:<textarea name="remark"></textarea></label>
        </p>
        <p>
            <button id="submitBtn" type="submit">确定</button>
         	<a href="javascript:history.back()">返回</a>
        </p>
    </form>
    </main>
    <script src="/static/js/jquery.js"></script>
    <script src="/static/js/yi.toast.js"></script>
    <script>
    	//网页加载完毕获取等级列表
    	$("form").submit(function(evt){
    		$("#submitBtn").prop("disabled",true);
    		evt.preventDefault();
    		
    		$.post("/vipconsume/add.do",$(this).serialize(),function(resp){
    			if(resp.code!=="ok"){
    				toast(resp.message);
    				return;
    			}
    			alert("成功!");
    			
    		}).always(function(){
    			$("#submitBtn").prop("disabled",false);
    		});
    		
    	});
    </script>
</body>
</html>